package com.gufe.dto.Exhibitions;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;

@Data
public class ExhibitionDTO {

    private Integer id;

    @NotBlank(message = "展览名称不能为空")
    private String name;

    @NotNull(message = "开始日期不能为空")
    private LocalDate startDate;

    @NotNull(message = "结束日期不能为空")
    private LocalDate endDate;

    @NotNull(message = "总容量不能为空")
    private Integer capacity;

    private Integer reservedCount;

    private Integer status;
}